package com.ly.heart.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.SurveyApplyEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 勘测申请Mapper接口
 *
 * @author wutao
 * @date 2024-05-22
 */
@Mapper
public interface SurveyApplyMapper extends BaseMapper<SurveyApplyEntity> {
    /**
     * 查询勘测申请
     *
     * @param id 勘测申请ID
     * @return 勘测申请
     */
    SurveyApplyEntity selectErpSurveyApplyInfoById ( String id );

    /**
     * 查询勘测申请列表
     *
     * @param erpSurveyApplyInfo 勘测申请
     * @return 勘测申请集合
     */
    List<SurveyApplyEntity> selectErpSurveyApplyInfoList ( SurveyApplyEntity erpSurveyApplyInfo );

    /**
     * 新增勘测申请
     *
     * @param erpSurveyApplyInfo 勘测申请
     * @return 结果
     */
    int insertErpSurveyApplyInfo ( SurveyApplyEntity erpSurveyApplyInfo );

    /**
     * 修改勘测申请
     *
     * @param erpSurveyApplyInfo 勘测申请
     * @return 结果
     */
    int updateErpSurveyApplyInfo ( SurveyApplyEntity erpSurveyApplyInfo );

    /**
     * 删除勘测申请
     *
     * @param id 勘测申请ID
     * @return 结果
     */
    int deleteErpSurveyApplyInfoById ( String id );

    /**
     * 批量删除勘测申请
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteErpSurveyApplyInfoByIds ( String[] ids );
}
